package com.tianji.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.entity.PointsRecord;
import com.tianji.learning.enums.PointsRecordType;
import com.tianji.learning.mq.msg.SignInMessage;
import com.tianji.learning.vo.PointsStatisticsVO;

import java.util.List;

/**
 * @author 墨墨
 * @description 针对表【points_record(学习积分记录，每个月底清零)】的数据库操作Service
 * @createDate 2024-10-30 11:30:57
 */
public interface PointsRecordService extends IService<PointsRecord> {

    //  添加积分记录
    void addPointReord(SignInMessage msg, PointsRecordType type);

    //  查询我的今日积分情况
    List<PointsStatisticsVO> queryMyTodayPoints();
}
